package com.example.demos.model;

import java.sql.Timestamp;

public class UserToken {
    private String token;
    private int userId;
    private Timestamp createtime;
    private Timestamp expiretime;
    private int state;
    private int site_id;

    public UserToken() {
    }

    public UserToken(String token, int userId, Timestamp createtime, Timestamp expiretime, int state, int site_id) {
        this.token = token;
        this.userId = userId;
        this.createtime = createtime;
        this.expiretime = expiretime;
        this.state = state;
        this.site_id = site_id;
    }

    public String getToken() {
        return token;
    }

    public int getUserId() {
        return userId;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public Timestamp getExpiretime() {
        return expiretime;
    }

    public int getState() {
        return state;
    }

    public int getSite_id() {
        return site_id;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public void setExpiretime(Timestamp expiretime) {
        this.expiretime = expiretime;
    }

    public void setState(int state) {
        this.state = state;
    }

    public void setSite_id(int site_id) {
        this.site_id = site_id;
    }

    @Override
    public String toString() {
        return "UserToken{" +
                "token='" + token + '\'' +
                ", userId=" + userId +
                ", createtime=" + createtime +
                ", expiretime=" + expiretime +
                ", state=" + state +
                ", site_id=" + site_id +
                '}';
    }
}
